package com.dsy.tools.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 *
 * </p>
 *
 * @author dsy
 * @since 2021-03-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TbPhoto implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 风景照id
     */
    @TableId(value = "photo_id", type = IdType.AUTO)
    private Integer photoId;

    /**
     * 风景照标题
     */
    private String photoTittle;

    /**
     * 风景照内容
     */
    private String photoContent;

    /**
     * 风景照作者
     */
    private Integer photoUser;

    /**
     * 风景照路径
     */
    private String photoUrl;

    /**
     * 风景照投票数据
     */
    private Integer photoLike;

    /**
     * 发表时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime photoTime;
    /**
     * 发表信息实体
     */
    private TbTou tbTou;


}
